﻿using System;
using System.Web.UI.WebControls;
using BLL.RF.Repair;

public partial class ProductRepair_ViewRepair_RepariCancelView_RepairCancelViewbySN : System.Web.UI.Page
{
    private RepairCancel rc;
    private string sn
    {
        get { return ViewState["SN"].ToString(); }
        set { ViewState["SN"] = value; }
    }

    public ProductRepair_ViewRepair_RepariCancelView_RepairCancelViewbySN()
    {
        rc = new RepairCancel();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        sn = CommHelper.GetProductSN(this.TextBox1.Text.Trim());
        BindGV();
    }

    protected void BindGV()
    {
        this.GridView1.DataSource = rc.RepairCancel_GetbySN(sn);
        this.GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, System.Web.UI.WebControls.GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindGV();
    }
}
